// 用户信息接口
export interface User {
  id: string
  username: string
  email: string
  avatar?: string
  source?: 'local' | 'wechat'
  createdAt?: string
}

// 登录表单接口
export interface LoginForm {
  username: string
  password: string
}

// 注册表单接口
export interface RegisterForm {
  username: string
  email: string
  password: string
  confirmPassword: string
}

// API 响应接口
export interface ApiResponse<T = any> {
  success: boolean
  message: string
  data?: T
}

// 登录响应接口
export interface LoginResponse {
  token: string
  user: User
}

// 微信登录响应接口
export interface WeChatLoginResponse {
  qrCode: string
  state: string
  expiresIn: number
}

// 微信状态检查响应接口
export interface WeChatStatusResponse {
  status: 'pending' | 'scanned' | 'confirmed' | 'expired'
  userInfo?: User
  token?: string
}
